{config_load file="$language/lang_$language.conf" section="checkout_paypal"}
{config_load file="$language/lang_$language.conf" section="checkout_navigation"}
{config_load file="$language/lang_$language.conf" section="checkout_payment"}
{config_load file="$language/gm_lang_$language.conf" section="lightbox"}

<div{if $LIGHTBOX == 'true'} id="lightbox_content"{/if}>
<div id="checkout_shipping" class="checkout{if $LIGHTBOX == 'true'} lightbox_block{/if}">

	<div class="head">
		<div id="iconizing_icon">
			<img src="{$tpl_path}icons/bestellaufgeben.gif" />
		</div>
		
		<div id="iconized_page_head">
			{#heading_checkout#}
		</div>
	</div>

	{if $error!=''}<div class="error">{$error}</div>{/if}

	<br /><br />
	<div class="shipping_address_block">
		<div class="text_block_heading">{#title_payment_address#}:</div>
		<div class="text_block">{$ADDRESS_PAYMENT_LABEL}</div>
		<div class="text_block_button">{$BUTTON_PAYMENT_ADDRESS}</div>
	</div>
	<br />
	
	{if $ADDRESS_SHIPPING_LABEL}
		<div class="shipping_address_block">
			<div class="text_block_heading">{#title_shipping_address#}:</div>
			<div class="text_block">{$ADDRESS_SHIPPING_LABEL}</div>
			<div class="text_block_button">{$BUTTON_SHIPPING_ADDRESS}</div>
		</div>
		
		<div class="heading">
			<img src="{$tpl_path}icons/versandart.gif"  alt="{#title_shipping#}" title="{#title_shipping#}" />
			<h2>
				{#title_shipping#}
			</h2>
			<div class="subtitle">{#text_shipping#}</div>
		</div>
		
		{$FORM_SHIPPING_ACTION}
		{$SHIPPING_BLOCK}
		{$PAYMENT_HIDDEN}
		{$FORM_END}		
	{/if}

	<div class="heading">
		<img src="{$tpl_path}icons/merkzettel.gif"  alt="{#title_shipping#}" title="{#title_shipping#}" />
		<h2>
			{#text_products#}
		</h2>
		<div class="subtitle">{#text_products_subtitle#}</div>
	</div>

	<div id="gm_checkout_confirmation">
	
		<div class="content" id="order_data">
			<div class="products_block">
				<table class="orderdetails" width="100%" border="0" cellspacing="0" cellpadding="6">
				  <tr class="headerrow">
				    <td class="left"><b>{#text_products#}</b></td>
				    <td class="left"><b>{#text_model#}</b></td>
				    <td class="right"><b>{#text_qty#}</b></td>
				    <td class="right"><b>{#text_sprice#}</b></td>
				    <td class="center"><b>{#text_fprice#}</b></td>
				  </tr>
				  {foreach name=aussen item=data from=$products_data} 
				  <tr class="{cycle values="contentrow1,contentrow2"}">
				    <td valign="top" class="productname">
				   		<b>{$data.name}</b>
				   		{foreach key=a_data item=attrib_data from=$data.attributes}
				   		<br />{$attrib_data.option}: {$attrib_data.value}
						{/foreach}
					</td>
						<td valign="top" class="productname">{$data.model}</td>
						<td valign="top" class="quantity">{$data.qty}</td>
					  <td valign="top" class="singleprice nobr">{$data.price_formated}</td>
					  <td valign="top" class="totalprice nobr">{$data.final_price_formated}</td>
				  </tr>
				  {/foreach}
				</table>
			</div>
			<div class="total_block">
				<table class="orderdetails" width="100%" border="0" cellspacing="0" cellpadding="6">
				  <tr>
				    <td colspan="5" class="subtotal">
				    <div align="right">
				    <table border="0" cellspacing="0" cellpadding="1">
				    	{foreach name=total_data item=total from=$total_block}
				    	<tr>
				    		<td valign="top">{$total.title}</td>
				    		<td valign="top" align="right" class="nobr">{$total.text}</td>
				    	</tr>
				     	{/foreach}
				    </table>
				    </div>
				  </tr>
				</table>
			</div>		
		</div>
		
	</div>

	{if $PAYMENT_INFORMATION!=''}
		<div class="heading">
			<img src="{$tpl_path}icons/zahlungsweise.gif"  alt="{#title_shipping#}" title="{#title_shipping#}" />
			<h2>
				{#text_payment_info#}
			</h2>
			<div class="subtitle">{#text_payment_info#}</div>
		</div>
		{foreach name=aussen item=payment from=$payment_info}
			<div><div class="strong">{$payment.TITLE}</div></b> {$payment.FIELD}</div>
		{/foreach}
	{/if}

	{$CHECKOUT_FORM}
	<div id="gm_checkout_payment">
		<div class="heading">
			<img src="{$tpl_path}icons/anmerkungen.gif"  alt="{#title_comments#}" title="{#title_comments#}" />
			<h2>
				{#title_comments#}
			</h2>
			<div class="subtitle">{#text_comments#}</div>
		</div>
		
		<div class="textbox">{$COMMENTS}</div>
		
		{if $WITHDRAWAL}
		<div class="heading">
			<img src="{$tpl_path}icons/agb.gif"  alt="{#title_withdrawal#}" title="{#title_withdrawal#}" />
			<h2>
				{#title_withdrawal#}
			</h2>
			<div class="subtitle">{#text_withdrawal#}</div>
		</div>
		
		<div class="textbox">{$WITHDRAWAL}</div>
		{/if}
		
		{if $CHECKBOX_WITHDRAWAL}
			<div class="accept_box"><div class="accept_box_checkbox">{$CHECKBOX_WITHDRAWAL}</div><div class="accept_box_text">{#text_accept_withdrawal#}</div></div>
		{/if}
		
		{if $AGB}
		<div class="heading">
			<img src="{$tpl_path}icons/agb.gif"  alt="{#title_agb#}" title="{#title_agb#}" />
			<h2>
				{#title_agb#}
			</h2>
			<div class="subtitle">{#text_agb#}</div>
		</div>
		
		<div class="textbox">{$AGB}</div>
		{/if}
		
		{if $CHECKBOX_AGB}
			<div class="accept_box"><div class="accept_box_checkbox">{$CHECKBOX_AGB}</div><div class="accept_box_text">{#text_accept_agb#}</div></div>
		{/if}
	</div>
	<br />
	
	<p> {if $MODULE_BUTTONS!=''} {$MODULE_BUTTONS}<br />{/if} {$CHECKOUT_BUTTON}</p>
	
	{$FORM_END}
	
	<div id="footer">{#gm_window_close#}</div>
	
</div>	
</div>